<div class="safe_map vm">
	<div class="box h sizing">
		<form class="hd" name="safe" novalidate>
			
			<div class="file fl ">
				<div class="name fl">
					<label for="name">名称:</label>
					<input type="text" id="name" name="name" ng-model="name" required>
					<div class="errorBox">
						<span style="color:red;" ng-show="safe.name.$dirty">
						    <span ng-show="safe.name.$error.required">请填写方案名称</span>
						</span>
					</div>
				</div>

				<div class="model fl">
					<label for="model">类型:</label>
					<select name="model" id="model" ng-model="model">
						<option value="安全区">安全区</option>
						<option value="保留区">保留区</option>
						<option value="危险区">危险区</option>
					</select>
				</div>
				
				<div class="address fl">
					<label for="ck_addr">位置:</label>
					<span ng-bind="address"></span>
					<button class="btn btn-primary" ng-click="ckAddr()"><i class="fa fa-map-marker"></i>选择</button>
				</div>

			</div>	
			
			<div class="check_r fl">
				<div class="min_r fl">1公里</div>
				<div class="rangebox fl">
					<input type="range" ng-model="range" ng-change="rangeChange()" min="10" max="50">
				</div>
				<div class="max_r fl">5公里</div>
				<div class="r">方圆{{r}}公里</div>
			</div>


			<button class="btn btn-primary" ng-click="save()" ng-disabled="safe.$invalid">保存</button>
			<button class="btn btn-primary btnBack" ng-click="back()">返回</button>
		</form>

		<div class="allMap" id="allMap"></div>
	</div>
</div>